<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script src="../../b2c/lib/js/jquery/jquery-2.1.4.min.js"></script>
</head>
<body>
<script type="text/javascript">
    var arr=[{name:'111',sex:'女'},{name:'222',sex:'男'}]
    var obj={name:'232',sex:'男'};
    var str1=JSON.stringify(arr);
    var str2=JSON.stringify(obj);


    console.log(str1.indexOf(str2))

</script>
</body>
</html>